import React, {useState} from 'react';
import {Provider} from "./context";
import Child from "./components/Child";

function App(props) {
    const [userName,setUserName] = useState("lisi");
    return (
        <Provider value={{
            userName,
            age:12,
            setUserName
        }}>
            <Child/>
        </Provider>
    );
}

export default App;